import request from '@/utils/request.js'

import {useTokenStore} from '@/stores/token.js'



//渠道数据
export const interestListRecordListService = (params)=>{
    return  request.get('/admin/interest/listRecord',{params:params})
 }

export const interestListInterestResourceService = (params)=>{
    return  request.get('/admin/interest/listInterestResource',{params:params})
}


export const interestAddInterestPublishService = (data)=>{
    return  request.post('/admin/interest/addInterestPublish',data)
}

export const interestListPlateService = (params)=>{
    return  request.get('/admin/interest/listPlate',{params:params})
}


export const interestListOfficialAccountService = (params)=>{
    return  request.get('/admin/interest/listOfficialAccount',{params:params})
}


export const interestUpdateInterestPublishService = (data)=>{
    return  request.post('/admin/interest/updateInterestPublish',data)
}


export const interestDeleteInterestPublishService = (id)=>{
    return request.get('/admin/interest/delInterestPublish?id='+id)
}



export const interestPublishInterestPublishService = (data)=>{
    return  request.post('/admin/interest/publishInterestPublish',data)
}




export const interestCancelTopInterestPublishService = (id)=>{
    return request.get('/admin/interest/cancelTopInterestPublish?id='+id)
}


export const interestSetPopularService = (id)=>{
    return request.get('/admin/interest/setPopular?id='+id)
}

export const interestCancelPopularService = (id)=>{
    return request.get('/admin/interest/cancelPopular?id='+id)
}


export const interestTopInterestPublishService = (params)=>{
    return  request.get('/admin/interest/topInterestPublish',{params:params})
}

